Copy and resize a bitmap to the XPRINT page. |
|||||||||||||||||||||||||||||||||
Syntax |
XPRINT STRETCH hBmp, ID, (x1,y1)-(x2,y2) TO (x3,y3)-(x4,y4) [,Mix, Stretch] XPRINT STRETCH PAGE hBmp, ID [, Mix, Stretch] |
||||||||||||||||||||||||||||||||
Remarks |
You can copy a complete bitmap, or a portion of it, to the XPRINT page, while resizing it to a larger or smaller size. The handle variable hBmp specifies the handle of the source bitmap or window. The parameter ID is the control identifier (1 to 65535) assigned with CONTROL ADD GRAPHIC. ID must be zero (0) for a GRAPHIC WINDOW or a bitmsp. The destination of the stretch operation is always the attached XPRINT page. The bitmap is automatically resized to fit the destination parameters. You must use care that your parameters are valid for the specified bitmaps, or result of the operation is undefined. The second form, XPRINT STRETCH PAGE, is a shortcut for copying a complete bitmap to the clip or client area of the host printer page. The image is automatically stretched or condensed to fit the target appropriately. |
||||||||||||||||||||||||||||||||
Mix |
If the Mix parameter is included, it is one of the values in the following table. If not specified, a default of %MIX_COPYSRC is presumed. There are 16 mix modes available to use for mixing drawing colors with the colors which already exist at the at the drawing location. The mix mode equates are predefined in PowerBASIC.
|
||||||||||||||||||||||||||||||||
Stretch |
If the Stretch parameter is included, it is one of the values in the following table. If not included, or it is the value zero (0), the stretch mode is unchanged. An appropriate choice of stretch mode can substantially enhance the quality of bitmaps which are changed in size. The stretch mode equates are predefined in PowerBASIC.
|
||||||||||||||||||||||||||||||||
See also |
XPRINT COPY, XPRINT RENDER, XPRINT SET MIX, XPRINT SET STRETCHMODE |